﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace MediumApi.Db
{
    [Table("tb_menu")]
    public class Menu
    {
        public int Id { get; set; }
        /// <summary>
        /// 上级ID
        /// </summary>
        public int ManagerId { get; set; }
        /// <summary>
        /// 菜单名字
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 菜单路径
        /// </summary>
        public string MenuPath { get; set; }
        /// <summary>
        /// 页面ID
        /// </summary>
        public int PageTableId {get;set;}
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 菜单类型 1-一级 2,-子菜单
        /// </summary>
        public int MenuType { get; set; }
        /// <summary>
        /// 菜单排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 菜单状态 1-显示 2-隐藏
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
    }
}
